package com.yangfei.SportAssistant.services;

import com.yangfei.SportAssistant.util.Constants;

public class MapListsenerFactory {

	static public MapListsenerSuper CreateMapListsener(Constants.MapListsenerType mapProvider) {
		MapListsenerSuper retListsener = null;
		
		switch (mapProvider) {
		case EGoogleMap: {
			retListsener = new CGoogleLocationListener();
		}
			break;
		case EBaiduMap: {
			retListsener = new CBaiduLocationListener();
		}
			break;
		}
		
		return retListsener;
	}
}
